import pandas as pd
from pandas import DataFrame,Series

df =DataFrame({'姓名':['a','b'],'学号':['A1','A2'],'成绩1':[98,80],'成绩2':[87,80]})
print(df)

new_data =DataFrame({'姓名':['d'],'学号':['A4'],'成绩':[89],'成绩2':[78]})
df = pd.concat([df,new_data],ignore_index=True)
print(df)